//
//  HomeThreeTableViewCell.m
//  好奇
//
//  Created by ***鹏辉 on 16/9/25.
//  Copyright © 2016年 Zuopenghui. All rights reserved.
//

#import "HomeThreeTableViewCell.h"
#import "UIButton+WebCache.h"
#import "UIImageView+WebCache.h"
@interface HomeThreeTableViewCell()
@property (weak, nonatomic) IBOutlet UIButton *HaoQiXinBtn;

@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *BiaoTiLable;
@property (weak, nonatomic) IBOutlet UILabel *SubTitleLable;
@property (weak, nonatomic) IBOutlet UIImageView *BS;

@end
@implementation HomeThreeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
  
}
- (IBAction)HaoQiXinBtnClick:(UIButton *)sender {
    
    if (self.model.type == 0)
    {
        self.HaoQiRiBaoClick();
    }
}
- (IBAction)FenXiang:(UIButton *)sender {
}
-(void)setModel:(HomeTableViewModel *)model
{

    [self.BS sd_setImageWithURL:[NSURL URLWithString:model.post[@"column"][@"icon"]]];
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.image]];
    self.BiaoTiLable.text = model.post[@"title"];
    self.SubTitleLable.text = model.post[@"description"];

}
@end
